<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">

        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />

        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>

        <title>后台管理</title>
    </head>

    <body class="body_ifm">

        <div id="comrating" style="display:none; width: 600px; ">
            <form class="layui-form" action="index.php?m=admin_lt_member&c=uprating" target="supportiframe" method="post" id="formstatus">
                <table cellspacing='1' cellpadding='1' class="admin_company_table">
                    <tr>
                        <td align="right"><span style="font-weight:bold;">会员等级：</span></td>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <div class="layui-input-inline">
                                        <select name="rating" id="lt_rating_val" lay-filter="rating">
                                            <option value="">请选择</option>
                                            {yun:}foreach from = $ratingarr key=key item=ratlist{/yun}
                                            <option value="{yun:}$key{/yun}">{yun:}$ratlist{/yun}</option>
                                            {yun:}/foreach{/yun}
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td align="right">账户{yun:}$config.integral_pricename{/yun}：</td>
                        <td><input type="text" name="integral" id="integral" size="15" class="admin_c_input-tex" value="" /></td>
                    </tr>
                    <tr class="admin_table_trbg">
                        <td align="right"><span style="font-weight:bold;">会员到期时间：</span></td>
                        <td>
                            <p id="vipetime"></p>
                        </td>
                        <td align="right">延长会员有效期：</td>
                        <td><input type="text" name="addday" style="width:40px;" class="admin_c_input-tex"> 天</td>
                    </tr>
                    <tr>
                        <td align="right">发布职位数：</td>
                        <td>
                            <input type="text" name="lt_job_num" id="lt_job_num" size="15" class="admin_c_input-tex" value="" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')" />
                        </td>
                        <td align="right">简历下载数：</td>
                        <td><input type="text" name="lt_down_resume" id="lt_down_resume" size="15" class="admin_c_input-tex" value="" /></td>
                    </tr>
                    <tr class="admin_table_trbg">
                        <td align="right">刷新职位：</td>
                        <td><input type="text" name="lt_breakjob_num" id="lt_breakjob_num" size="15" class="admin_c_input-tex" value="" /></td>
						 <td align="right">{yun:}$config.sy_chat_name{/yun}对象数：</td>
                        <td><input type="text" name="chat_num" id="chat_num" size="15" class="admin_c_input-tex" value="" /></td>
                    </tr>
                    <tr style="text-align:center;margin-top:10px">
                        <td colspan='4'>
                            <input type="submit" value='确认' onclick="loadlayer();" class="submit_btn"> &nbsp;&nbsp;
                            <input type="button" onClick="layer.closeAll();" class="cancel_btn" value='取消'>
                        </td>
                    </tr>
                </table>
                <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                <input type="hidden" name="rating_name" id="rating_name" value="">
                <input type="hidden" name="oldetime" id="oldetime" value="">
                <input name="ratuid" id="ratuid" value="0" type="hidden">
            </form>
        </div>

        <div id="infobox2" style="display:none; width: 390px; ">
            <form class="layui-form" action="index.php?m=admin_lt_member&c=status" target="supportiframe" method="post" onsubmit="return htStatus()">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    <tr>
                        <th width="80">审核操作：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input name="status" id="status1" value="1" title="已审核" type="radio" />
                                    <input name="status" id="status3" value="3" title="未通过" type="radio" />
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>审核说明：</th>
                        <td><textarea id="statusbody" name="statusbody" class="admin_explain_textarea"></textarea></td>
                    </tr>
                    <tr>
                        <td colspan='2' align="center">
                            <input type="submit" value='确认' class="admin_examine_bth">
                            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
                        </td>
                    </tr>
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                    <input name="uid" value="0" type="hidden">
                </table>
            </form>
        </div>
        <!---------邮箱认证----->
        <div id="ltrenemail" style="display:none; width: 390px; ">
         <div class="jap_honda">
            <form class="layui-form" action="index.php?m=admin_lt_member&c=emailstatus" target="supportiframe" method="post">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    
                    <tr>
                        <th width="80">邮箱：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input type="text" class="input-text" id="ltemailmail" name="ltemailmail" value="">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th width="80">认证操作：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input name="estatus" id="ltestatus0" value="0" title="待认证" type="radio" />
                                    <input name="estatus" id="ltestatus1" value="1" title="已认证" type="radio" />
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2' align="center">
                            <input type="submit" value='确认' onclick="loadlayer();" class="admin_examine_bth">
                            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
                        </td>
                    </tr>
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                    <input name="uid" id="ltemailuid" value="0" type="hidden">
                </table>
            </form>
           </div>
        </div>

         <!---------手机认证----->
         <div id="ltrenphone" style="display:none; width: 390px; ">
            <div class="jap_honda">
            <form class="layui-form" action="index.php?m=admin_lt_member&c=mobliestatus" target="supportiframe" method="post">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    
                    <tr>
                        <th width="80">手机号码：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                        <input type="text" class="input-text" id="ltphonemoblie" name="ltphonemoblie" value="">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th width="80">认证操作：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input name="mstatus" id="ltpstatus0" value="0" title="待认证" type="radio" />
                                    <input name="mstatus" id="ltpstatus1" value="1" title="已认证" type="radio" />
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan='2' align="center">
                            <input type="submit" value='确认' onclick="loadlayer();" class="admin_examine_bth">
                            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
                        </td>
                    </tr>
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                    <input name="uid" id="ltphoneuid"  value="0" type="hidden">
                </table>
            </form>
           </div>
        </div>
        <!-----营业执照认证------->
        <div id="preview"  style="display:none;width:390px;">
                <div style="height:290px;overflow:auto;width:390px;" >
              
                   
                    <form class="layui-form" action="index.php?m=admin_lt_member&c=ltstatus" target="supportiframe" method="post" onsubmit="return tcdiv();">
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                         <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                        <tr>
                      <th>认证执照：</th>
                      <td align="left">  <div class="job_box_div"style="float:left;border:1px solid #eee;"></div> <a target="_blank" href="" id='preview_url' style="line-height:70px; padding-left:10px;">查看原图</a>
                        <div id="zwyyzz" style="line-height:70px; padding-left:10px;display: none">暂无营业执照</div>
                    </td> 
                      </tr>
                        <tr>
                          <th width="80">审核操作：</th>
                          <td>
                                <div class="layui-form-item">
                               <div class="layui-input-block">
                                    <input name="r_status" id="ltstatus0" value="0" title="待认证" type="radio"/>
                                    <input name="r_status" id="ltstatus1" value="1" title="已认证" type="radio"/>   
                                </div>
                           </div>	
                            </td>
                        </tr>
                        <tr>
                          <th>审核说明：</th>
                          <td><textarea id="ltcontent"  name="statusbody"  class="admin_explain_textarea"></textarea></td>
                        </tr>
                        <tr style="text-align:center;margin-top:10px">
                          <td colspan='2' align="center">
                            <div class="admin_Operating_sub"> <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
                            <input type="button"  onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'></div>
                            </td>
                        </tr>
                      </table>
                      <input name="uid" id="ltyyzzuid" value="0" type="hidden">
                    </form>
              
                </div>
              </div>
                <!-------批量认证---->
		 <div id="batchrezhen" style="display:none;width:360px ">
				<div style="overflow:auto;width:360px;">
					<form class="layui-form" action="index.php?m=admin_lt_member&c=batchfirm" target="supportiframe" method="post">
						<table cellspacing='1' cellpadding='1' class="admin_examine_table">
							<tr>
								<th width="80">认证类型：</th>
								<td align="left">
									<div class="layui-form-item">
										<div class="layui-input-block">
												<input name="ltname_email"    title="邮箱"        type="checkbox"   lay-skin="primary"/>
												<input name="ltname_moblie"   title="手机"        type="checkbox"   lay-skin="primary"/>
												<input name="ltname_yyzz"     title="营业执照"     type="checkbox"   lay-skin="primary"/>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<th width="80">认证操作：</th>
								<td align="left">
									<div class="layui-form-item">
										<div class="layui-input-block">
											<input name="plstatus" id="batchstatis0" value="0" title="待认证" type="radio" />
											<input name="plstatus" id="batchstatis1" value="1" title="已认证" type="radio" />
										</div>
									</div>
								</td>
							</tr>
		 
							<tr>
								<td colspan='2' align="center">
									<div class="admin_Operating_sub">
										<input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
										<input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'></div>
								</td>
							</tr>
						</table>
						<input name="uid" id="btachuid" value="0" type="hidden">
						<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
					</form>
				</div>
			</div>
        <div class="infoboxp">
        	
        	
        	<div class="tabs_info">
                <ul>
                    <li class="curr">
                        <a href="index.php?m=admin_lt_member">全部猎头</a>
                    </li>
                   
                    <li>
                        <a href="index.php?m=user_member&c=writtenOffLog&utype=3">解绑记录</a>
                    </li>
                    <li>
                        <a href="index.php?m=admin_lt_member&c=member_log&uid={yun:}$smarty.get.uid{/yun}">会员日志</a>
                    </li>
                    
                </ul>
            </div>
        	
            <div class="admin_new_tip">
                <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
                <div class="admin_new_tip_list_cont">
                    <div class="admin_new_tip_list">该页面展示了网站所有的猎头会员管理信息，可对猎头会员进行审核，删除操作。</div>
                    <div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
                     <div class="admin_new_tip_list">当前猎头不是已审核状态，涉及到相关数据无法进行审核操作。</div>
                </div>
            </div>

            <div class="clear"></div>
            <div class="admin_new_search_box">
                <form action="index.php" name="myform" method="get">
                    <input name="m" value="admin_lt_member" type="hidden" />
                    <input type="hidden" name="status" value="{yun:}$smarty.get.status{/yun}" />
                    <div class="admin_new_search_name">搜索类型：</div>
                    <div class="admin_Filter_text formselect" did='dtype'>
                        <input type="button" value="{yun:}if $smarty.get.type=='1'||$smarty.get.type==''{/yun}用户名{yun:}elseif $smarty.get.type=='2'{/yun}公司名称{yun:}elseif $smarty.get.type=='3'{/yun}EMAIL{yun:}else{/yun}手机号{yun:}/if{/yun}" class="admin_Filter_but" id="btype">
                        <input type="hidden" id='type' value="{yun:}if $smarty.get.type{/yun}{yun:}$smarty.get.type{/yun}{yun:}else{/yun}1{yun:}/if{/yun}" name='type'>

                        <div class="admin_Filter_text_box" style="display:none" id='dtype'>
                            <ul>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('1','type','用户名')">用户名</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('2','type','公司名称')">公司名称</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('3','type','EMAIL')">EMAIL</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('4','type','手机号')">手机号</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <input type="text" placeholder="输入你要搜索的关键字" value="{yun:}$smarty.get.keyword{/yun}" name='keyword' class="admin_Filter_search" size="25">
                    <input type="submit" name='search' value="搜索" class="admin_Filter_bth">
                    <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
                </form>
                {yun:}include file="admin/admin_search.htm"{/yun}
            </div>

            <div class="clear"></div>

			<div class="admin_statistics">
            数据统计：
				<em class="admin_statistics_s">总数：<span class="ajaxltall">0</span></em>
				<em class="admin_statistics_s">未审核：<span class="ltStatusNum1">0</span></em>
				<em class="admin_statistics_s">未通过：<span class="ltStatusNum2">0</span></em>
				<em class="admin_statistics_s">已锁定：<span class="ltStatusNum3">0</span></em>
				搜索结果：<span>{yun:}$total{/yun}</span>；
			</div>

            <div class="table-list">
                <div class="admin_table_border">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form action="index.php" name="myform" method="get" target="supportiframe" id='myform'>
                        <input name="m" value="admin_lt_member" type="hidden" />
                        <input name="c" value="del" type="hidden" />
                        <table width="100%">
                            <thead>
                                <tr class="admin_table_top">
                                    <th style="width:20px;"><label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/></label></th>
                                    <th>
                                        {yun:}if $smarty.get.t=="uid" && $smarty.get.order=="asc"{/yun}
                                        <a href="{yun:}searchurl order=desc t=uid m=admin_lt_member untype='order,t'{/yun}">用户ID<img src="images/sanj.jpg" /></a>
                                        {yun:}else{/yun}
                                        <a href="{yun:}searchurl order=asc t=uid m=admin_lt_member untype='order,t'{/yun}">用户ID<img src="images/sanj2.jpg" /></a>
                                        {yun:}/if{/yun}
                                    </th>

                                    <th align="left">用户名/公司名称</th>
                                    <th>会员等级</th>
                                    <th>企业认证</th>
                                    <th align="left">手机号/EMAIL</th>
                                    <th>登录/注册</th>
                                    <th>状态</th>
                                    <th>站点</th>
                                    <th>推荐</th>
									<th width="200">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {yun:}foreach item=v key=key from=$rows{/yun}
                                <tr align="center" {yun:}if ($key+1)%2=='0' {/yun}class="admin_com_td_bg" {yun:}/if{/yun} id="list{yun:}$v.uid{/yun}">
                                    <td><input type="checkbox" value="{yun:}$v.uid{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
                                    <td class="td1" style="text-align:center;">
                                        {yun:}$v.uid{/yun}
                                    </td>
                                    <td class="ud" align="left">
                                        <a href="javascript:void(0)" onclick="toMember('index.php?m=admin_lt_member&c=Imitate&uid={yun:}$v.uid{/yun}','{yun:}$v.usertype{/yun}')" class="admin_lt_username">{yun:}$v.username{/yun}</a>
                                        {yun:}if $v.status==2{/yun}<img src="../config/ajax_img/suo.png" alt="已锁定">{yun:}/if{/yun}
                                        <div class="mt8">{yun:}$v.com_name{/yun}</div>
                                    </td>
                                    <td class="td1" style="text-align:center;">
										 
										{yun:}if time() <= $v.vip_etime{/yun}
											{yun:}$v.rating_name{/yun}
										{yun:}else{/yun} 
											<b style="color:red;">{yun:}$v.rating_name{/yun}</b>
										{yun:}/if{/yun}
                                        <a data-uid="{yun:}$v.uid{/yun}" href="javascript:void(0);" class="comrating">
                                            <span class="admin_company_xg_icon">[修改]</span>
                                        </a>
										{yun:}if $v.vip_etime{/yun} 
											{yun:}if time() <= $v.vip_etime{/yun} 
												<div class="mt5">{yun:}$v.vip_etime|date_format:"%Y-%m-%d"{/yun}</div>
											{yun:}else{/yun}
												<div class="mt5" style="color:red;">{yun:}$v.vip_etime|date_format:"%Y-%m-%d"{/yun}</div>
											{yun:}/if{/yun} 
										{yun:}/if{/yun} 
                                    </td>
									 
                                    <td>
                                        {yun:}if $v.email_status==1{/yun}
                                        <img src="../config/ajax_img/1-1.png" alt="邮箱已认证"   data-status="{yun:}$v.email_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-mail="{yun:}$v.email{/yun}"      width="20" height="20" class="lt_email">
                                         {yun:}else{/yun}
                                        <img src="../config/ajax_img/1-2.png" alt="邮箱未认证"   data-status="{yun:}$v.email_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-mail="{yun:}$v.email{/yun}"      width="20" height="20" class="lt_email">
                                         {yun:}/if{/yun} 
                                         {yun:}if $v.moblie_status==1{/yun}
                                        <img src="../config/ajax_img/2-1.png" title="手机已认证"  data-status="{yun:}$v.moblie_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-moblie="{yun:}$v.moblie{/yun}"  width="20" height="20" class="lt_moblie"> 
                                        {yun:}else{/yun}
                                        <img src="../config/ajax_img/2-2.png" alt="手机未认证"   data-status="{yun:}$v.moblie_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-moblie="{yun:}$v.moblie{/yun}"   width="20" height="20"   class="lt_moblie">
                                         {yun:}/if{/yun}
                                          {yun:}if $v.yyzz_status==1{/yun}
                                        <img src="../config/ajax_img/3-1.png" alt="营业执照已认证"  data-url="{yun:}$v.check{/yun}"  data-uid="{yun:}$v.uid{/yun}" data-status="{yun:}$v.yyzz_status{/yun}" width="20" height="20" class="lt_check">
                                         {yun:}else{/yun}
                                        <img src="../config/ajax_img/3-2.png" alt="营业执照未认证"  data-url="{yun:}$v.check{/yun}"  data-uid="{yun:}$v.uid{/yun}" data-status="{yun:}$v.yyzz_status{/yun}" width="20" height="20" class="lt_check">
                                         {yun:}/if{/yun}
                                    </td>

                                    <td class="od" align="left">
                                        <span class="admin_new_sj">{yun:}$v.moblie{/yun}</span>
                                        <div class=" mt8"><span class="admin_new_yx"> {yun:}$v.email{/yun}</span></div>
                                    </td>

                                    <td class="td">
                                        {yun:}$v.login_date|date_format:"%Y-%m-%d"{/yun}
                                        <div class=" mt8">{yun:}$v.reg_date|date_format:"%Y-%m-%d"{/yun}</div>
                                    </td>

                                    <td>
                                        {yun:}if $v.r_status=='1'{/yun}
                                        <span class="admin_com_Audited">已审核</span> {yun:}elseif $v.r_status=='2'{/yun}
                                        <span class="admin_com_Lock">已锁定</span> {yun:}elseif $v.r_status=='3'{/yun}
                                        <span class="admin_com_tg">未通过</span> {yun:}else{/yun}
                                        <span class="admin_com_noAudited">未审核</span> {yun:}/if{/yun}
                                    </td>
                                    <td>
                                        <div>{yun:}$Dname[$v.did]{/yun}</div>
                                        <div>
                                            <a href="javascript:;" onclick="checksite('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}','index.php?m=admin_lt_member&c=checksitedid');" class="admin_company_xg_icon">分配</a>
                                        </div>
                                    </td>

                                    <td id="rec{yun:}$v.uid{/yun}">
                                        {yun:}if $v.rec=="1"{/yun}
                                        <a href="javascript:void(0);" onClick="rec_up('index.php?m=admin_lt_member&c=lt_rec','{yun:}$v.uid{/yun}','0','rec');">
                                            <img src="../config/ajax_img/doneico.gif">
                                        </a>
                                        {yun:}else{/yun}
                                        <a href="javascript:void(0);" onClick="rec_up('index.php?m=admin_lt_member&c=lt_rec','{yun:}$v.uid{/yun}','1','rec');">
                                            <img src="../config/ajax_img/errorico.gif">
                                        </a>
                                        {yun:}/if{/yun}
                                    </td>
                                    <td>
										<a href="javascript:void(0);" class="admin_new_c_bth admin_new_c_bthsh user_status" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.r_status{/yun}">审核</a>

										<!--<a href="javascript:void(0);" class="admin_new_c_bth admin_new_c_bthsd status" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}">锁定</a>-->
										<a href="javascript:void(0);" onClick="resetpw('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_mmcz">密码</a>
										
										<a href="index.php?m=admin_lt_member&c=edit&id={yun:}$v.uid{/yun}&rating={yun:}$v.rating{/yun}" class="admin_new_c_bth mt5">修改</a>
										<a href="index.php?m=admin_lt_member&c=member_log&uid={yun:}$v.uid{/yun}" class="admin_new_c_bth admin_new_c_rz mt5">日志
										</a>
										<a href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=admin_lt_member&c=del&del={yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc mt5">删除</a>
                                         
                                    </td>
                                </tr>
                                {yun:}/foreach{/yun}
                                <tr>
                                    <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
                                    <td colspan="14">
                                        <label for="chkAll2">全选</label>&nbsp;
                                        <input class="admin_button" type="button" name="delsub" value="删除所选" onclick="return really('del[]')" />
                                        <input class="admin_button" type="button" name="delsub" value="批量审核" onclick="return statusAll('del[]')" />
                                        <input class="admin_button" type="button" name="delsub" value="批量认证" onclick="return batch('del[]')" />
                                    </td>
								</tr>
								{yun:}if $total > $config.sy_listnum {/yun}
									<tr>
										{yun:}if $pagenum==1{/yun}
											<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum == $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}/if{/yun}
										<td colspan="12" class="digg">{yun:}$pagenav{/yun}</td>
									</tr>
								{yun:}/if{/yun}
                            </tbody>
                        </table>
                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                    </form>
                </div>
            </div>
        </div>
        <script type="text/javascript">
		$(function() {
                $(".user_status").click(function() {
                    var uid = $(this).attr("pid");
                    var status = $(this).attr("status");
                    if(status==2){
                      parent.layer.msg('当前用户为已锁定状态，无法进行审核操作', 2, 8);
                      return false;
                    }
                    $("#status" + status).attr("checked", true);
                    layui.use(['form'], function() {
                        var form = layui.form;
                        form.render();
                    });
                    $("input[name=uid]").val(uid);
                    var pytoken = $("#pytoken").val();
                    $.post("index.php?m=admin_lt_member&c=lockinfo", {
                        pytoken: pytoken,
                        uid: uid
                    }, function(msg) {
                        $("#statusbody").val(msg);
                        $.layer({
                            type: 1,
                            title: '猎头用户审核',
                            closeBtn: [0, true],
                            border: [10, 0.3, '#000', true],
                            area: ['390px', '230px'],
                            page: {
                                dom: "#infobox2"
                            }
                        });
                    });
                });
                $(".comrating").click(function() {
                    var uid = $(this).attr("data-uid");
                    var pytoken = $("#pytoken").val();
                    $.post("index.php?m=admin_lt_member&c=getstatis", {
                        uid: uid,
                        pytoken: pytoken
                    }, function(data) {
                        if(data) {
                            var dataJson = eval("(" + data + ")");
                            $('#lt_job_num').val(dataJson.lt_job_num);
                            $('#lt_down_resume').val(dataJson.lt_down_resume);
                            $('#lt_breakjob_num').val(dataJson.lt_breakjob_num);
							$('#chat_num').val(dataJson.chat_num);
                            $('#oldetime').val(dataJson.vip_etime);
                            $('#vipetime').text(dataJson.vipetime);
                            $('#pay').val(dataJson.pay);
                            $('#integral').val(dataJson.integral);
                            $('#ratuid').val(uid);
                            $("#lt_rating_val").val(dataJson.rating);

                            layui.use(['form'], function() {
                                var f = layui.form;
                                f.render();
                            });
                            var ratingname = $("#lt_rating_val").find("option:selected").text();
                            $('#rating_name').val(ratingname);

                            $.layer({
                                type: 1,
                                title: '猎头会员等级修改',
                                closeBtn: [0, true],
                                border: [10, 0.3, '#000', true],
                                area: ['600px', '300px'],
                                page: {
                                    dom: "#comrating"
                                }
                            });
                        } else {
                            parent.layer.msg('用户信息获取失败！', 2, 8);
                            return false;
                        }
                    });
                });
            });
            /*邮件认证*/
             $(".lt_email").click(function(data){
                var status = $(this).attr("data-status");
     
                var uid    = $(this).attr("data-url");
                var email  = $(this).attr("data-mail");
                  $('#ltemailmail').val(email);
                  $('#ltemailuid').val(uid);
                  $("#ltestatus" + status).attr("checked", true);
                  layui.use([ 'form' ], function() {
                  var form = layui.form;
                  form.render();
                  });
                  $.layer({
                    type : 1,
                    title : '邮箱认证',
                    closeBtn : [ 0, true ],
                    offset : [ '80px', '' ],
                    border : [ 10, 0.3, '#000', true ],
                    area : [ '350px', '240px' ],
                    page : {
                      dom : '#ltrenemail'  
                    }
                  }); 
            })

              /*手机认证*/
              $(".lt_moblie").click(function(data){
                var status =  $(this).attr("data-status");
                var uid    =  $(this).attr("data-url");
                var moblie  = $(this).attr("data-moblie");
                $('#ltphonemoblie').val(moblie);
                $('#ltphoneuid').val(uid);
                $("#ltpstatus" + status).attr("checked", true);
                layui.use([ 'form' ], function() {
                  var form = layui.form;
                  form.render();
                });
                $.layer({
                  type : 1,
                  title : '手机认证',
                  closeBtn : [ 0, true ],
                  offset : [ '80px', '' ],
                  border : [ 10, 0.3, '#000', true ],
                  area : [ '350px', '240px' ],
                  page : {
                    dom : '#ltrenphone'
                  }
               }); 
            })
            /**猎头营业执照认证**/
            $(".lt_check").click(function(data){
                var ltstatus   = $(this).attr("data-status");//状态
                var ltcheck    = $(this).attr("data-url");//图片
                var ltuid      = $(this).attr("data-uid");//uid
                var pytoken=$('#pytoken').val();
                $(".job_box_div").html("<img src='"+ltcheck+"' style='width:150px;height:80px' />");
	            if(ltcheck){
                    $("#preview_url").attr("href",ltcheck);
                    $("#zwyyzz").hide();
                    $("#preview_url").show();
                }else{
                    $("#preview_url").hide();
                    $("#zwyyzz").show();
                }
                
                $('#ltyyzzuid').val(ltuid);
                $("#ltstatus" + ltstatus).attr("checked", true);
                layui.use([ 'form' ], function() {
                    var form = layui.form;
                    form.render();
                });
                $.post("index.php?m=admin_lt_member&c=yyzzlockinfo",{uid:ltuid,pytoken:pytoken},function(msg){
		            $("#ltcontent").val(msg); 
	            }); 
                $.layer({
                    type : 1,
                    title : '营业执照认证',
                    closeBtn : [ 0, true ],
                    offset : [ '80px', '' ],
                    border : [ 10, 0.3, '#000', true ],
                    area : [ '350px', 'auto' ],
                    page : {
                        dom : '#preview'
                    }
                }); 
            
            })



            layui.use(['layer', 'form'], function() {
                var layer = layui.layer,
                    form = layui.form,
                    $ = layui.$,
                    url = "index.php?m=admin_lt_member&c=getrating";

                var pytoken = $("#pytoken").val();

                form.on('select(rating)', function(data) {
                    $.post(url, {
                        id: data.value,
                        pytoken: pytoken
                    }, function(htm) {
                        if(htm) {
                            var dataJson = eval("(" + htm + ")");
                            $('#lt_job_num').val(dataJson.lt_job_num);
                            $('#lt_down_resume').val(dataJson.lt_resume);
                            $('#lt_breakjob_num').val(dataJson.lt_breakjob_num);
							$('#chat_num').val(dataJson.chat_num);
                            $('#vipetime').text(dataJson.vipetime);
                            $('#oldetime').val(dataJson.oldetime);
                            $('#rating_name').val(dataJson.name);
                        } else {
                            layer.msg('请选择会员等级');
                        }
                        form.render('select');
                    });
                });
            });
			
			$(document).ready(function(){
				$.get("index.php?m=admin_lt_member&c=ltNum", function(data) {
					var datas = eval('(' + data + ')');
					if(datas.ltAllNum) {
						$('.ajaxltall').html(datas.ltAllNum);
					}
					if(datas.ltStatusNum1) {
						$('.ltStatusNum1').html(datas.ltStatusNum1);
					}
					if(datas.ltStatusNum2) {
						$('.ltStatusNum2').html(datas.ltStatusNum2);
					}
					if(datas.ltStatusNum3) {
						$('.ltStatusNum3').html(datas.ltStatusNum3);
					}
				});
			});
			
			function statusAll(name) {
				var chk_value =[];  
	               
                $('input[name="'+name+'"]:checked').each(function(){    
                    chk_value.push($(this).val());   
                });  
            
                if(chk_value.length==0){
                    layer.msg("请选择要批量审核的数据！",2,8);return false;
                }else{
                	$("input[name=uid]").val(chk_value);
					$("#statusbody").val('');
					$("input[name='status']").attr('checked', false);
					$.layer({
						type : 1,
						title : '猎头用户审核',
						closeBtn : [ 0, true ],
						border : [ 10, 0.3, '#000', true ],
						area : [ '390px', 'auto' ],
						page : {
							dom : "#infobox2"
						}
					});
                }
			}

             //批量认证
			function batch(name){
                var chk_value =[];  
                $('input[name="'+name+'"]:checked').each(function(){    
                    chk_value.push($(this).val());   
                });  
            
                if(chk_value.length==0){
                    layer.msg("请选择要批量认证的数据！",2,8);return false;
                }else{

                    $('#btachuid').val(chk_value);
                    $.layer({
                        type : 1,
                        title : '批量认证',
                        closeBtn : [ 0, true ],
                        offset : [ '80px', '' ],
                        border : [ 10, 0.3, '#000', true ],
                        area : [ '350px', '235px' ],
                        page : {
                            dom : '#batchrezhen'
                        }
                    }); 
                }
            } 
			function toMember(url, usertype){
				if (usertype !='3'){
					if (usertype == '1'){
						var u = '求职者';
					}else if(usertype == '2'){
						var u = '招聘者';
					} else if (usertype == '4'){
						var u = '培训';
					}
					parent.layer.confirm("该账户当前身份为"+u+"，以猎头身份模拟进入可能导致部分功能无法正常使用，是否确认进入？", function() {
						parent.layer.closeAll();
						window.open(url);
					});
				}else{
					window.open(url);
				}
			}
        </script>
        {yun:}include file="$adminstyle/checkdomain.htm"{/yun}
    </body>
</html>